﻿@model KL.Store.Web.Models.PageModel
@using KL.Store.Core
@{
    ViewBag.Title = Model.Aciklama;
    ViewBag.Description = @Parameters.PageDescription;
    ViewBag.hasSub = "true";
    var showInformations = true;
    var showAccount = true;
    var columnCssClass = "col-xs-12 col-sm-12 col-md-3 col-lg-2 left first last";
    var contentCssClass = "col-xs-12 col-sm-12 col-md-9 col-lg-10 right last";
}
@if (Parameters.Theme == "DK")
{
    showInformations = false;
    showAccount = false;
    columnCssClass = "col-xs-12 col-sm-12 col-md-4 col-lg-3 left first last";
    contentCssClass = "col-xs-12 col-sm-12 col-md-8 col-lg-9 right";
}
else if (Parameters.Theme == "EO")
{
    showInformations = true;
    showAccount = false;
    columnCssClass = "col-xs-12 col-sm-12 col-md-4 col-lg-3 left first last";
    contentCssClass = "col-xs-12 col-sm-12 col-md-8 col-lg-9 right";
}
else if (Parameters.Theme == "WU")
{
    showInformations = true;
    showAccount = false;
    columnCssClass = "col-xs-12 col-sm-12 col-md-4 col-lg-3 left";
    contentCssClass = "col-xs-12 col-sm-12 col-md-8 col-lg-9 right";
}
else if (Parameters.Theme == "HA")
{
    showAccount = false;
}
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 first last">
    @if (Parameters.Theme != "HA")
    {
        <div class="breadcrumb col-xs-12 col-sm-12 col-md-12 col-lg-12">
            <div class="bcBorder"></div>
            <div class="bcLinks">
                <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
                    <a href="/" itemprop="url">
                        <span itemprop="title">Anasayfa</span>
                    </a>›
                </div>
                <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
                    <a href="/Content/@(Model.Url)" itemprop="url">
                        <span itemprop="title">@(Model.Aciklama)</span>
                    </a>
                </div>
            </div>
            <div class="bcBorder"></div>
        </div>
        <div class="clearfix"></div>
    }
    @if (Model.IsManager)
    {
        <a href="/Pages/Edit/@(Model.SatirId)" class="urunDuzenle fancybox.iframe edit-genel"><i class="fa fa-edit fa-2x"></i></a>
    }
</div>
<div class="@columnCssClass">
    @if (Parameters.ShowCategoryOnContentPages)
    {
        Html.RenderAction("Categories", "Partials");
    }
    @if (showInformations)
    {
        Html.RenderAction("Information", "Partials");
    }
    @if (showAccount)
    {
        Html.RenderAction("Account", "Partials");
    }

</div>
<div class="@contentCssClass">
    <div class="content">
        @Html.Raw(Model.Yanit)
    </div>
</div>
@if (Parameters.WebSiteTrackingCode != "")
{ 
    <script type="text/javascript">

        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', '@Parameters.WebSiteTrackingCode']);
        _gaq.push(['_setDomainName', '@Parameters.WebSiteTrackingDomainName']);
        _gaq.push(['_setAllowLinker', true]);
        _gaq.push(['_trackPageview']);

        (function ()
        {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();

    </script>
}

